#if !defined(AFX_PROJECTSECOND_H__A23F8581_DF7A_45E2_AC6D_9E5E474A9CBD__INCLUDED_)
#define AFX_PROJECTSECOND_H__A23F8581_DF7A_45E2_AC6D_9E5E474A9CBD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif 
// _MSC_VER > 1000
// ProjectSecond.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CProjectSecond dialog

class CProjectSecond : public CDialog
{
// Construction
public:
	char	errnostring[256] ;
	CProjectSecond(CWnd* pParent = NULL);   // standard constructor
    int SelectClockIndex(int);
	int SelectBandIndex(int iSelect);
	int ReturnClock(int iSelect);
	bool HexToDec(char *Temp,int &idec);
	int ReturnBand(int iSelect);
	void refresh_edittext (void);
	int iRead_Sad8() ;
	void edittext2combo();
	int  CProjectSecond::iWrite_Sad8(void);
	void CProjectSecond::therm_num2str(byte innum ,byte *buchang,int len);
	BOOL CProjectSecond::therm_str2num(byte *buchang,int len ,byte *innum );
	BOOL CProjectSecond::combo2readbuf(void);
	  CProjectSecond::check_thermbackstring(char *stemp);
	  BOOL             CProjectSecond::check_readbackstring(char *stemp);
BOOL             CProjectSecond::check_writebackstring(char *stemp);
BOOL     CProjectSecond::buf2thermedit(char *s) ;
int		CProjectSecond::getcomno ( void) ;


	// {{AFX_DATA(CProjectSecond)

	enum { IDD = IDD_PROJECT_SECOND };
	CComboBox	m_cmbCheckmode;
	CComboBox	m_cmbModebus;
	CComboBox	m_cmbBaud;
	CComboBox	m_cmbClock;
	CComboBox   m_cmbTemp;
	CComboBox   m_comno;

	CString	m_RClock;
	CString	m_RBaud;
	CString	m_RModebus;
	CString	m_RMode;
	CString	m_WClock;
	CString	m_WBaud;
	CString	m_WModebus;
	CString	m_WCheckMode;
	CString	m_Wbuchang;
	CString		m_comnostr;

	CString		m_WTemp;
	CString		m_RTemp;

	CString		m_therm1;
	CString		m_therm2;
	CString		m_therm3;
	CString		m_therm4;
	CString		m_therm5;
	CString		m_therm6;
	CString		m_therm7;
	CString		m_therm8;


	//}}AFX_DATA

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CProjectSecond)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	// {{AFX_MSG(CProjectSecond)
	afx_msg void OnRead();
	afx_msg void OnWrite();
	afx_msg void OnDefault();
	afx_msg void OnReadTherm();
	// }}AFX_MSG

	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CProjectDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PROJECTSECOND_H__A23F8581_DF7A_45E2_AC6D_9E5E474A9CBD__INCLUDED_)
